<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
$(function(){
	//初始化表单验证
	$("#addForm").validate({
		rules: {
			gbprice: {isMoney: true},
		},
		messages: {
			name: {required: "请输入商品标题"},
			
		},
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success:function(data){
					switch(data.flag){
					case 2:
						Kit.alert("请选择商品分类");return;
					/* case -1:
						Kit.alert("网络繁忙...，请重试");return;   */
					case 0:
						/* dataPaginator.loadPage(1);  */
						addDialog.close();
						return;
					}
				}
			});
		}
	});
}); 
</script>
<form id="addForm" action="${BASE_PATH}/dict/sendseller/doAdd" method="post" class="form-horizontal" style="">
	<!-- 编辑窗口 -->	
		<div class="form-group"  style="margin-left: 20px">	
			<table class="table table-bordered table-striped">
				<tr>
					<td>发货厂家名称</td>
					<td><input class="form-control" type="text" id="sendSellerName" name="sendSellerName"  size="12" placeholder="规格名称" /></td>
				</tr>
			</table>
		</div>
		
		<div class="row">
		<div class="col-lg-6"><button class="btn btn-primary col-sm-3 pull-right" type="submit" autocomplete="off" >提交</button></div>
		<div class="col-lg-6"><button class="btn btn-default col-sm-3 pull-left"  type="button" onclick="javascript:addDialog.close();" autocomplete="off">取消</button></div>
	</div>
</form>
